import axios from '../utils/request'

const base = {
    baseUrl:'http://api.tianapi.com',
    ncov:'/ncov/index',
    juheBaseUrl:"/api",
    springTravel:"/springTravel/citys",
    springTravelQuery:"/springTravel/query"
}

const api = {
    //疫情數據
    getNcov(params){
        return axios.get(base.baseUrl + base.ncov,{
            params
        })
    },
    //各地政策城市数据
    springTravel(params){
        return axios.get(base.juheBaseUrl + base.springTravel,{
            params
        })
    },
    //各地政策详情
    springTravelQuery(params){
        return axios.get(base.juheBaseUrl + base.springTravelQuery,{
            params
        })
    }
    
}

export default api;
